package com.kx.demo.jdk.collection;

import java.util.LinkedList;
import java.util.List;

/**
 * @author kx
 * @date 2020/4/10
 */
public class LinkedListDemo {

    public static void main(String[] args) {
        List<String> list = new KxLinkedList<>();
        List<String> linkedList = new LinkedList<>();
        list.add("张三");
        list.add("李四");
        list.set(1, "李四");
        list.add(0, "我是0");
        for (int i = 0; i < 10; i++) {
            list.add("String_" + i);
        }

        list.remove("String_8");
        list.remove(2);
        System.out.println(list.size());
        System.out.println(list);
        System.out.println(list.get(5));
    }

}
